import {Routes} from "@angular/router";
import {IndexComponent} from "./index/index.component";
import {ProductDetailComponent} from "./product-detail/product-detail.component";
import {ProductListComponent} from "./product-list/product-list.component";
import {UserCenterComponent} from "./user-center/user-center.component";


export const childrenRoutes:  Routes=[
  // {path:'',redirectTo:'index',pathMatch:'full'},
  {path:'',component:IndexComponent},
  {path:'index',component:IndexComponent},
  {path:'product-detail/:id',component:ProductDetailComponent},
  {path:'product-list',component:ProductListComponent},
  {path:'user-center',component:UserCenterComponent},

  // {path:"**",redirectTo:'index'}
];
